package com.tucanstubs.android_wheresmystuff.items;

import java.util.Date;
/**
 * A subclass of item that represents a donation.
 * @author team 37
 * @version 1.0 2/25/2012
 */
public class Donation extends Item{
	
	/**
	 * Create a donation object with info matching the inputed info.
	 * @param name item name
	 * @param description item description
	 * @param location item location
	 * @param dateEntered date item was created
	 * @param id unique item id
	 */
	public Donation(String name, String description, double[] location, Date dateEntered,int id) {
		super(name, description, location, dateEntered,id);
	}
	/**
	 * method for generating string representation of an item.
	 * @return string representation of the item
	 */
	public String toString(){
		return "Donation:"+super.toString();
	}
	
	/**
	 * Overrides the equals method
	 * @param Object obj the object to compare with
	 * @return a boolean for whether the item is equal to the given item
	 */
	@Override
	public boolean equals(Object obj){
	    if (!(obj instanceof Donation))return false;
	    return super.equals(obj);
	}


}
